-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for NXP S32K148 evaluation board #85555
base: main
Are you sure you want to change the base?
Add support for NXP S32K148 evaluation board #85555
Conversation
@marcin-wierzbicki please update the hal_nxp entry in the west manifest to point to that pr |
I'd recommend to keep this first PR smaller including basic enablement of the SoC and board, and split the PHY driver into another PR for easier review. This will likely also help you to move the prs faster. This is not mandatory, but in general a good practice. |
Supported Features | ||
================== | ||
|
||
The ``s32k148_evb`` board configuration supports the following hardware features: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ``s32k148_evb`` board configuration supports the following hardware features: | |
The ``s32k148_evb`` board supports the following hardware features: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stop marking things as resolved if they are not resolved and fix the highlighted issue
Sure. Thank you. |
f26455d
to
445c7d5
Compare
The following west manifest projects have changed revision in this Pull Request:
Additional metadata changed:
⛔ DNM label due to: 1 project with metadata changes and 1 impostor SHA Note: This message is automatically posted and updated by the Manifest GitHub Action. |
@marcin-wierzbicki you have marked multiple comments I left as resolved, they aren't resolved, you haven't fixed the issues, please acquaint yourself with the contributor guidelines https://docs.zephyrproject.org/latest/contribute/contributor_expectations.html#workflow-suggestions-that-help-reviewers as per
Also apply the coding style requirements to this PR without saying "will be handled in future" |
Thank you for the feedback! The coding style fixes are already being addressed in a separate branch, and @KevShaju will be submitting a dedicated PR for them soon. This will help keep this PR focused on its main changes while ensuring consistency across the project. |
445c7d5
to
e2933bf
Compare
This PR will not be approved and merged, if the requested changes are not done. |
e2933bf
to
ac2751f
Compare
Thank you. We have addressed all the requested changes in this PR. |
ac2751f
to
7e879ec
Compare
boards/nxp/s32k148_evb/doc/index.rst
Outdated
=========================== | ||
|
||
This board integrates an OpenSDA debug adapter. It can be used for flashing and debugging. | ||
The board cannot be debugged using the ``west debug`` command, since pyOCD does not support the target. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding west runner support should be straight forward, e.g.
- jlink: https://github.com/zephyrproject-rtos/zephyr/blob/main/boards/nxp/ucans32k1sic/board.cmake#L4-L9
- or, s32 debug probe: https://github.com/zephyrproject-rtos/zephyr/blob/main/boards/nxp/s32z2xxdc2/board.cmake#L10-L13
No need to comment on pyOCD if it's not supported for this target (only on what is supported).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the input. Regarding the nxp_s32dbg runner, I believe nxp_s32dbg.py won’t work for the S32K148 as-is. There are some hardcoded elements, and it currently runs the gta process, whereas in this case, we need to use pegdbserver_console. It might be necessary to introduce a new runner to support this properly
0f9eb96
to
1480ad1
Compare
1480ad1
to
2f6525e
Compare
Support for NXP S32K148 evaluation board (s32k148_evb). The board can be debugged using gdb (see boards/nxp/s32k148_evb/doc/index.rst). Adapt samples: adc_dt, adc_sequence. Adapt tests: adc_api, gpio_basic_api, gpio_hogs. Signed-off-by: Marcin Wierzbicki <[email protected]>
Adds the c22 tja11xx driver. Signed-off-by: Kevin Shaju <[email protected]>
Add a shield for NXP ADTJA1101 Ethernet Adapter. This shield can be used with the s32k148_evb. Signed-off-by: Kevin Shaju <[email protected]>
2f6525e
to
02f9aaa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments
&ftfc { | ||
flash0: flash@0 { | ||
compatible = "soc-nv-flash"; | ||
reg = <0 (DT_SIZE_M(1) + DT_SIZE_K(512))>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps DT_SIZE_K(1536)
@@ -203,7 +203,7 @@ manifest: | |||
groups: | |||
- hal | |||
- name: hal_nxp | |||
revision: 2a1d73aeb863a73bb06ba8b236de7da6d3e31847 | |||
revision: e3b7e815ac1849d527d4a56d3d02328c532a318b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls use pull/509/head
so that the CI can be run on this PR. You also don't need to keep pushing this PR every time there's a change on the hal_nxp side
button_4: button_1 { | ||
label = "SW4"; | ||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; | ||
zephyr,code = <INPUT_KEY_0>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
INPUT_KEY_1
?
}; | ||
|
||
&cpu0 { | ||
clock-frequency = <112000000>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this should be 80Mhz as you have mentioned in the doc
@@ -0,0 +1,29 @@ | |||
# Copyright (c) 2023 NXP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove (c)
here
bias-pull-up; | ||
slew-rate = "fast"; | ||
}; | ||
group1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no spacing has been added
Supported Features | ||
================== | ||
|
||
The ``s32k148_evb`` board configuration supports the following hardware features: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stop marking things as resolved if they are not resolved and fix the highlighted issue
=============== ================ =============== ===== | ||
Devicetree node Devicetree alias Label Pin | ||
=============== ================ =============== ===== | ||
led1_red led0 LED1_RGB_RED PTE21 | ||
led1_green led1 LED1_RGB_GREEN PTE22 | ||
led1_blue led2 LED1_RGB_BLUE PTE23 | ||
=============== ================ =============== ===== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tables do not look valid e.g.
+-------------------+-----------------------------------------------+
| ``Command ID`` | Command description |
+===================+===============================================+
| ``0`` | Echo |
+-------------------+-----------------------------------------------+
but doc build fails to not able to tell
|
||
&enet_mdio { | ||
status = "okay"; | ||
phy: phy@0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
pinctrl-0 = <&adc0_default>; | ||
pinctrl-names = "default"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move above child node
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
convert to webp then put through https://tinypng.com/
Add support for NXP S32K148 evaluation board.
The board can be debugged using gdb (see boards/nxp/s32k148_evb/doc/index.rst).
The board cannot be debugged using the
west debug
command, since pyOCD does not support the target. I would be grateful for any guidance on this.Adapt samples: adc_dt, adc_sequence.
Adapt tests: adc_api, gpio_basic_api, gpio_hogs.
See Add support for S32K148 SoC